package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 新闻对象 articles
 *
 * @author AousVolad
 * @date 2024-06-21
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString
public class Articles extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 文章标题 */
    @Excel(name = "文章标题")
    private String title;

    /** 作者姓名 */
    @Excel(name = "作者姓名")
    private String author;

    /** 文章内容 */
    @Excel(name = "文章内容")
    private String content;

    /** 发布时间 */
    @Excel(name = "发布时间")
    private String publishTime;

    /** 文章标签 */
    @Excel(name = "文章标签")
    private String tags;

    /** 浏览量 */
    @Excel(name = "浏览量")
    private Long views;

    /** 点赞量 */
    @Excel(name = "点赞量")
    private Long likes;

    /** 文章来源 */
    @Excel(name = "文章来源")
    private String source;

    /** 封面图片地址 */
    private String coverImageUrl;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 最后修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date modifiedAt;

    /** 是否可见 */
    @Excel(name = "是否可见")
    private String isVisible;

    /** 所属栏目ID */
    @Excel(name = "所属栏目ID")
    private Long columnId;
    /** 栏目 */
    private Sections sections;


}
